package com.zisu.springbootsource.controller;

import com.zisu.springbootsource.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 蔡翔
 * @Date: 2020/5/5 19:47
 * @Version 1.0
 */
@RestController
@RequestMapping("/test")
public class testController {

    @Autowired
    TestService testService;

    @PostMapping("/noRR")
    public R noRR() throws Exception {
        return R.ok().put("OK",testService.test());
    }
}
